/**
 * Created by baoman on 2017/4/12.
 */
angular.module(moduleName + '.directives')
  .directive('hrAccordion', function () {
    return {
      restrict: 'EA',
      templateUrl: 'hr-accordion/hr-accordion.html',
      replace: true,
      transclude:true,
      scope: {
        config: '='
      },
      link: function (scope) {
        scope.isShow = scope.config.enable == false || scope.config == true ? scope.config.enable : true;
        scope.change = function(){
          scope.isShow = !scope.isShow;
        }
      }
    }
  });